Skip to content

docs: add Effect gateway best practices#5007

Closed
benpsnyder wants to merge 1 commit into
clockworklabs:masterfrom
benpsnyder:docs/effect-v4-server-gateway
Closed

docs: add Effect gateway best practices#5007
benpsnyder wants to merge 1 commit into
clockworklabs:masterfrom
benpsnyder:docs/effect-v4-server-gateway

Conversation

@benpsnyder

Copy link
Copy Markdown
Contributor

Refs #5004

Summary

  • Adds a Developer Resources how-to for server-side TypeScript gateways using Effect v4.
  • Shows a scoped Effect service that owns the SpacetimeDB SDK WebSocket lifecycle with Context.Service, Layer.effect, Effect.acquireRelease, and Effect.callback.
  • Documents SSE adapters, shared CLI entrypoints via NodeRuntime.runMain, and fake layers for deterministic tests.
  • Links the new recipe from the resources index under Application Patterns.

Validation

  • git diff --cached --check
  • pnpm --dir docs typecheck
  • pnpm --dir docs build

Note: Docusaurus build completes successfully but still emits the existing llms-txt warning for /docs/ask-ai/ask-ai.

@cloutiertyler

Copy link
Copy Markdown
Contributor

Hi @benpsnyder, thanks for your contribution to the docs. We don't accept draft PRs in our repo to keep our PRs relatively neat and manageable, so I'm going to close this for now, at least until you have a complete PR for us to review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants